<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>


<script type="text/javascript">
window.onload = function(){
	function addGenerator(num){
		return function(toAdd){
			return num + toAdd;
		};
	}
var addFive = addGenerator(1);
alert(addFive(9));
};
</script>
</head>
<body>

</body>
</html>